const app = getApp()

Page({
    data: {
        userInfo: null,
        scoreData: null
    },
    onLoad(options) {
        app.initPage()
            .then(res => {
                this.loadProviderCountScore()
            })
    },
    onShow(options) {
    },
    // 获取商城用户信息
    userInfoGet() {
        app.api.userInfoGet()
            .then(res => {
                this.setData({
                    userInfo: res.data
                })
            })
    },
    // 加载评分
    loadProviderCountScore() {
        app.api.providerCountScore()
            .then(res => {
                this.setData({
                    scoreData: res.data
                })
            })
    }
})
